import request from '@/utils/request'

// 获取权限列表
export const getPermissionListApi = () => request.get('/sys/permission')

// 获取权限详情
export const getPermissionInfoApi = id => request.get(`/sys/permission/${id}`)

// 修改权限详情
export const editPermissionInfoApi = data => request.put(`/sys/permission/${data.id}`, data)

// 添加权限点
export const addPermissionApi = data => request.post('/sys/permission', data)

// 删除权限点
export const delPermissionInfoApi = id => request.delete(`/sys/permission/${id}`)
